import type { ResourceItem } from './resource'

export interface UnitItem {
    id: number
    course_id: number
    title_cn: string
    title_en: string
    title: string
    description: string
    icon_url: string
    sort_order: number
    is_completed: boolean
    resources: ResourceItem[]
    _resources: {
        [key: string]: ResourceItem[]
    }
}

export interface UnitItemCreate {
    id?: number
    course_id: number
    title_cn: string
    title_en: string
    title: string
    description: string
    icon_url: string
}
